package com.blog4j.requestRate.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2024/9/1 15:16
 **/
@Data
@ConfigurationProperties(prefix = "request-rate")
public class RequestRateProperties {
    /**
     * 是否启用限流
     */
    private Boolean enabled;

    /**
     * 限流缓存前缀
     */
    private String keyPrefix;

    /**
     * 缓存时间单位
     */
    private String timeUnit;
}
